package com.sdvdxl.action;

import com.sdvdxl.model.UserEntity;
import com.sdvdxl.service.UserService;
import com.sdvdxl.util.JsonResult;

public class UserAction {
	private UserEntity userEntity;
	private UserService userService;

	
	public UserEntity getUserEntity() {
		return userEntity;
	}

	public void setUserEntity(UserEntity userEntity) {
		this.userEntity = userEntity;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public JsonResult add() {
		JsonResult result = null;
		result = userService.add(userEntity);

		return result;
	}
	
}